<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>Dinic: Fichero Fuente apifiles/lado.c</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Dinic
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Documentacion de la API de DINIC para la cátedra de Matemática Discreta II.</div>
  </td>
   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Buscar" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generado por Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Buscar');
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('lado_8c_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Todo</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Estructuras de Datos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Archivos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funciones</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>&apos;typedefs&apos;</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>&apos;defines&apos;</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">lado.c</div>  </div>
</div><!--header-->
<div class="contents">
<a href="lado_8c.html">Ir a la documentación de este archivo.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="lado_8h.html">lado.h</a>&quot;</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &lt;assert.h&gt;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &lt;stdlib.h&gt;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;</div>
<div class="line"><a name="l00006"></a><span class="lineno"><a class="line" href="structLadoSt.html">    6</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structLadoSt.html">LadoSt</a>{</div>
<div class="line"><a name="l00007"></a><span class="lineno"><a class="line" href="structLadoSt.html#a04498d52117f705673d513847d9e0e6b">    7</a></span>&#160;    <a class="code" href="__u64_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a> <a class="code" href="structLadoSt.html#a04498d52117f705673d513847d9e0e6b">x</a>;  </div>
<div class="line"><a name="l00008"></a><span class="lineno"><a class="line" href="structLadoSt.html#a239d98618fd31de7d8d7a94d7beb3ed7">    8</a></span>&#160;    <a class="code" href="__u64_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a> <a class="code" href="structLadoSt.html#a239d98618fd31de7d8d7a94d7beb3ed7">y</a>;  </div>
<div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="structLadoSt.html#aafde18f8cc76a12c881282060f3645ae">    9</a></span>&#160;    <a class="code" href="__u64_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a> <a class="code" href="structLadoSt.html#aafde18f8cc76a12c881282060f3645ae">c</a>;  </div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;};</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">/* Constructores */</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="lado_8h.html#af6c7b132591388f3cdb55006f9cd850d">   21</a></span>&#160;<a class="code" href="structLado.html">Lado</a> <a class="code" href="lado_8c.html#af6c7b132591388f3cdb55006f9cd850d">lado_new</a>(<a class="code" href="__u64_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a> x, <a class="code" href="__u64_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a> y, <a class="code" href="__u64_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a> c){</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    <a class="code" href="structLado.html">Lado</a> edge = NULL;   <span class="comment">/*El lado a crear y devolver*/</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    </div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    edge = (<a class="code" href="structLado.html">Lado</a>)malloc(<span class="keyword">sizeof</span>(<span class="keyword">struct</span> <a class="code" href="structLadoSt.html">LadoSt</a>));</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    assert(edge != NULL);</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    edge-&gt;x = x;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    edge-&gt;y = y;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    edge-&gt;c = c;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    </div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <span class="keywordflow">return</span> edge;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;}</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="lado_8h.html#a701f41b841de7dd1527696515ed67bde">   37</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="lado_8c.html#a701f41b841de7dd1527696515ed67bde">lado_destroy</a>(<a class="code" href="structLado.html">Lado</a> edge){</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="keywordflow">if</span>(edge != <a class="code" href="lado_8h.html#a90b033fe9661d1b5a94b418825575f94">LadoNulo</a>){</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;        free(edge);</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    }</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    edge = <a class="code" href="lado_8h.html#a90b033fe9661d1b5a94b418825575f94">LadoNulo</a>;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;}</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="comment">/*  Operaciones */</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="lado_8h.html#aa684fbc52c931f51bd3516e911658b72">   51</a></span>&#160;<a class="code" href="__u64_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a> <a class="code" href="lado_8c.html#aa684fbc52c931f51bd3516e911658b72">lado_getX</a>(<a class="code" href="structLado.html">Lado</a> edge){</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    assert(edge!=<a class="code" href="lado_8h.html#a90b033fe9661d1b5a94b418825575f94">LadoNulo</a>);</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keywordflow">return</span> edge-&gt;x;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;}</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="lado_8h.html#ac67229f7a5f55dd9d2c0dd8caea42c27">   61</a></span>&#160;<a class="code" href="__u64_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a> <a class="code" href="lado_8c.html#ac67229f7a5f55dd9d2c0dd8caea42c27">lado_getY</a>(<a class="code" href="structLado.html">Lado</a> edge){</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    assert(edge!=<a class="code" href="lado_8h.html#a90b033fe9661d1b5a94b418825575f94">LadoNulo</a>);</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <span class="keywordflow">return</span> edge-&gt;y;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;}</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="lado_8h.html#a773e78b0e0de56f5ee313e4026c782ca">   71</a></span>&#160;<a class="code" href="__u64_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a> <a class="code" href="lado_8c.html#a773e78b0e0de56f5ee313e4026c782ca">lado_getCap</a>(<a class="code" href="structLado.html">Lado</a> edge){</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    assert(edge!=<a class="code" href="lado_8h.html#a90b033fe9661d1b5a94b418825575f94">LadoNulo</a>);</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="keywordflow">return</span> edge-&gt;c;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;}</div>
<div class="ttc" id="structLadoSt_html"><div class="ttname"><a href="structLadoSt.html">LadoSt</a></div><div class="ttdoc">Estructura principal de un lado. </div><div class="ttdef"><b>Definition:</b> <a href="lado_8c_source.html#l00006">lado.c:6</a></div></div>
<div class="ttc" id="lado_8c_html_ac67229f7a5f55dd9d2c0dd8caea42c27"><div class="ttname"><a href="lado_8c.html#ac67229f7a5f55dd9d2c0dd8caea42c27">lado_getY</a></div><div class="ttdeci">u64 lado_getY(Lado edge)</div><div class="ttdoc">Obtener el nombre del nodo &amp;#39;y&amp;#39;. </div><div class="ttdef"><b>Definition:</b> <a href="lado_8c_source.html#l00061">lado.c:61</a></div></div>
<div class="ttc" id="lado_8c_html_a701f41b841de7dd1527696515ed67bde"><div class="ttname"><a href="lado_8c.html#a701f41b841de7dd1527696515ed67bde">lado_destroy</a></div><div class="ttdeci">void lado_destroy(Lado edge)</div><div class="ttdoc">Destructor de un lado. </div><div class="ttdef"><b>Definition:</b> <a href="lado_8c_source.html#l00037">lado.c:37</a></div></div>
<div class="ttc" id="__u64_8h_html_a3f7e2bcbb0b4c338f3c4f6c937cd4234"><div class="ttname"><a href="__u64_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a></div><div class="ttdeci">uint64_t u64</div><div class="ttdoc">Entero de 64 bits sin signo. </div><div class="ttdef"><b>Definition:</b> <a href="__u64_8h_source.html#l00017">_u64.h:17</a></div></div>
<div class="ttc" id="lado_8h_html_a90b033fe9661d1b5a94b418825575f94"><div class="ttname"><a href="lado_8h.html#a90b033fe9661d1b5a94b418825575f94">LadoNulo</a></div><div class="ttdeci">#define LadoNulo</div><div class="ttdoc">Un lado que es nulo. </div><div class="ttdef"><b>Definition:</b> <a href="lado_8h_source.html#l00017">lado.h:17</a></div></div>
<div class="ttc" id="structLadoSt_html_a239d98618fd31de7d8d7a94d7beb3ed7"><div class="ttname"><a href="structLadoSt.html#a239d98618fd31de7d8d7a94d7beb3ed7">LadoSt::y</a></div><div class="ttdeci">u64 y</div><div class="ttdoc">El nombre del nodo &amp;#39;y&amp;#39;. </div><div class="ttdef"><b>Definition:</b> <a href="lado_8c_source.html#l00008">lado.c:8</a></div></div>
<div class="ttc" id="lado_8h_html"><div class="ttname"><a href="lado_8h.html">lado.h</a></div><div class="ttdoc">Lado es una estructura que representa un lado del network. </div></div>
<div class="ttc" id="structLado_html"><div class="ttname"><a href="structLado.html">Lado</a></div><div class="ttdoc">Puntero a un lado. </div></div>
<div class="ttc" id="lado_8c_html_aa684fbc52c931f51bd3516e911658b72"><div class="ttname"><a href="lado_8c.html#aa684fbc52c931f51bd3516e911658b72">lado_getX</a></div><div class="ttdeci">u64 lado_getX(Lado edge)</div><div class="ttdoc">Obtener el nombre del nodo &amp;#39;x&amp;#39;. </div><div class="ttdef"><b>Definition:</b> <a href="lado_8c_source.html#l00051">lado.c:51</a></div></div>
<div class="ttc" id="lado_8c_html_a773e78b0e0de56f5ee313e4026c782ca"><div class="ttname"><a href="lado_8c.html#a773e78b0e0de56f5ee313e4026c782ca">lado_getCap</a></div><div class="ttdeci">u64 lado_getCap(Lado edge)</div><div class="ttdoc">Obtener la capacidad de un lado. </div><div class="ttdef"><b>Definition:</b> <a href="lado_8c_source.html#l00071">lado.c:71</a></div></div>
<div class="ttc" id="lado_8c_html_af6c7b132591388f3cdb55006f9cd850d"><div class="ttname"><a href="lado_8c.html#af6c7b132591388f3cdb55006f9cd850d">lado_new</a></div><div class="ttdeci">Lado lado_new(u64 x, u64 y, u64 c)</div><div class="ttdoc">Creador de un nuevo lado. </div><div class="ttdef"><b>Definition:</b> <a href="lado_8c_source.html#l00021">lado.c:21</a></div></div>
<div class="ttc" id="structLadoSt_html_aafde18f8cc76a12c881282060f3645ae"><div class="ttname"><a href="structLadoSt.html#aafde18f8cc76a12c881282060f3645ae">LadoSt::c</a></div><div class="ttdeci">u64 c</div><div class="ttdoc">La capacidad del lado &amp;#39;xy&amp;#39;. </div><div class="ttdef"><b>Definition:</b> <a href="lado_8c_source.html#l00009">lado.c:9</a></div></div>
<div class="ttc" id="structLadoSt_html_a04498d52117f705673d513847d9e0e6b"><div class="ttname"><a href="structLadoSt.html#a04498d52117f705673d513847d9e0e6b">LadoSt::x</a></div><div class="ttdeci">u64 x</div><div class="ttdoc">El nombre del nodo &amp;#39;x&amp;#39;. </div><div class="ttdef"><b>Definition:</b> <a href="lado_8c_source.html#l00007">lado.c:7</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_5116870a98769fcb7fa621a6c1aaaf2c.html">apifiles</a></li><li class="navelem"><a class="el" href="lado_8c.html">lado.c</a></li>
    <li class="footer">Generado el Martes, 30 de Septiembre de 2014 12:40:17 para Dinic por
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.5 </li>
  </ul>
</div>
</body>
</html>
